package com.adamfass.tractorbeam;

import com.jme.scene.Spatial;
import com.jmex.physics.PhysicsSpace;
import com.jmex.physics.StaticPhysicsNode;

public abstract class StaticPhysicsGameObject implements GameEntity, Blocker {
  protected final StaticPhysicsNode physicsNode;
  
  protected StaticPhysicsGameObject(PhysicsSpace physicsSpace) {
    physicsNode = physicsSpace.createStaticNode();
  }
  
  public void cleanUp() {
    physicsNode.delete();
  }
  
  public Spatial getBlockerSpatial() {
    return physicsNode;
  }
}
